package by.myteam.gonki.states.movementstates;

import by.myteam.gonki.logic.GameLogic;

public class NitroMovementState implements IMovementState {

	private int speed;
	private int nitro = 30;
	@Override
	public void move() {
		speed = GameLogic.INSTANCE.getSpeed();
		GameLogic.INSTANCE.setNitro(speed + nitro);
	}

	@Override
	public void undo() {
		GameLogic.INSTANCE.setSpeed(speed);
	}
}
